class HuoQuDianZuoBiao {
    int x, y, z, X, Y, Z;
    double R;

    public void setDianA(int x, int y, int z) {
        this.x = x;
        this.y = y;
        this.z = z;
    }

    public void setDianB(int X, int Y, int Z) {
        this.X = X;
        this.Y = Y;
        this.Z = Z;
    }

    public double GetJuLi() {
        R = Math.sqrt(((X - x) * (X - x) + (Y - y) * (Y - y) + (Z - z) * (Z - z)));
        return R;
    }
}

    public class SanWeiJuLi2 {
        public static void main(String[] args) {
            HuoQuDianZuoBiao A = new HuoQuDianZuoBiao();
            A.setDianA(10, 10, 10);
            A.setDianB(10, 10, 10);
            System.out.println(String.format("%.4f", A.GetJuLi()));//  double 类型保留两位小数方法
        }
    }
